﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Fardis;

namespace Fardis.Test
{
    //tests based on NUnit 2.5.5.10112
    [TestFixture]
    public class FConvertTest
    {
        [Test]
        public void ToPersianDigit()
        {
            string[] strs = { 
                                "123", "۱۲۳",
                                "afshar3", "afshar۳",
                                "سعید۳۵", "سعید۳۵",
                                "دماوند 3۴4", "دماوند ۳۴۴",
                                "٤٤٤٧٤٧", "۴۴۴۷۴۷",
                                "Persia", "Persia"
                            };

            for (int i = 0; i < strs.Length; i = i + 2)
                Assert.AreEqual(strs[i + 1], FConvert.ToPersianDigit(strs[i]));
        }
    }
}
